﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ServerLib
{
    /// <summary>
    /// Interfase of chat server
    /// </summary>
    public interface IRemoteServer
    {
        void AddMessage(String login, String message);
        void AddClient(String login);
        void RemoveClient(String login);
        bool CheckPassword(String login, String password);
        bool CheckLogin(String login);
        ClientInfo GetClientInfo(String login);
        ArrayList GetListOfClients();
        String GetChatSession();
        void CreateUser(String login, String password);
        void RemoteUser(String login, String password);
        void SetUserInfo(String login, String name, String lastName, String birthday, ClientInfo.EnumSex sex);
        void SetUserInfo(String login, String password, String name, String lastName, String birthday, ClientInfo.EnumSex sex);
        void ChangePassword(String login, String password);
    }
}
